<?php
namespace Common\Library;

/**
 * 公司对象模型类
 * Class CompanyModel
 * @package Common\Library
 */
class CompanyModel {

    public $id;

    public $name;

    public $username;

    public $password;

    public $time;

    /**
     * 获得当前企业的站点
     * @return SiteModel
     */
    public function getSite(){
        return SiteDao::FetchByCompany($this->id);
    }


}
